package test.v4;

import com.baishui.context.ApplicationContext;
import com.baishui.context.support.ClassPathXmlApplicationContext;
import com.baishui.service.v4.BaishuiV4Service;
import org.junit.Assert;
import org.junit.Test;

public class Step09_ApplicationContextTest4 {

	@Test
	public void testGetBeanProperty() {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("litespring-v4.xml");
		BaishuiV4Service baishuiV4Service = (BaishuiV4Service)ctx.getBean("baishui");
		
		Assert.assertNotNull(baishuiV4Service.getCar());
		Assert.assertNotNull(baishuiV4Service.getHouse());
		
	}	
}
